package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学校对象 school
 * 
 * @author ruoyi
 * @date 2022-04-11
 */
@TableName(value = "bbs_school")
//@TableName(value = "school")
//implements Serializable extends BaseEntity
public class School extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学校id */
    private Long schoolid;

    /** 学校名称 */
    @Excel(name = "学校名称")
    private String schoolname;

    @Excel(name = "学校别名")
    private String anothername;

    /** 学校类型 */
    @Excel(name = "学校类型")
    private String schooltype;

    /** 学校位置 */
    @Excel(name = "学校位置")
    private String schooladdress;

    /** 学校下的板块数目 */
    @Excel(name = "学校下的板块数目")
    private Long platenum;

    /** 学校的用户数目 */
    @Excel(name = "学校的用户数目")
    private Long usernum;

    /** 学校的帖子数目 */
    @Excel(name = "学校的帖子数目")
    private Long contentnum;

    /** 学校状态。0：正常；1：需审核；2：已下架 */
    @Excel(name = "学校状态。0：正常；1：需审核；2：已下架")
    private Long state;

    public void setSchoolid(Long schoolid) 
    {
        this.schoolid = schoolid;
    }

    public Long getSchoolid() 
    {
        return schoolid;
    }
    public void setSchoolname(String schoolname) 
    {
        this.schoolname = schoolname;
    }

    public String getSchoolname() 
    {
        return schoolname;
    }
    public void setSchooltype(String schooltype) 
    {
        this.schooltype = schooltype;
    }

    public String getSchooltype() 
    {
        return schooltype;
    }
    public void setSchooladdress(String schooladdress) 
    {
        this.schooladdress = schooladdress;
    }

    public String getSchooladdress() 
    {
        return schooladdress;
    }
    public void setPlatenum(Long platenum) 
    {
        this.platenum = platenum;
    }

    public Long getPlatenum() 
    {
        return platenum;
    }
    public void setUsernum(Long usernum) 
    {
        this.usernum = usernum;
    }

    public Long getUsernum() 
    {
        return usernum;
    }
    public void setContentnum(Long contentnum) 
    {
        this.contentnum = contentnum;
    }

    public Long getContentnum() 
    {
        return contentnum;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public void setAnothername(String anothername)
    {
        this.anothername = anothername;
    }
    public String getAnothername()
    {
        return anothername;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("schoolid", getSchoolid())
            .append("schoolname", getSchoolname())
            .append("anotherName", getAnothername())
            .append("schooltype", getSchooltype())
            .append("schooladdress", getSchooladdress())
            .append("platenum", getPlatenum())
            .append("usernum", getUsernum())
            .append("contentnum", getContentnum())
            .append("state", getState())
            .toString();
    }
}
